One common use for Fetch is tranfering web pages to web servers. Web authors often create their HTML, GIF, JPEG, etc. files on a personal Macintosh, and use Fetch to transfer the pages to the server that will actually serve the files over the Internet. This tutorial section is aimed at walking you through your first such transfer. You may also want to read the other tutorial sections, but they are not required.
Before you start, you will need to gather four important pieces of information:
1) The hostname of the server that will hold your pages. It shouild be something like ╥www.acme.com╙.
2) Your userid, the name under which you sign onto the server. This may be the same userid you use to dial up your service provider (if the web server is run by the same company that sells you dial-up Internet access).
3) Your password. Again, this may be the same password you use when you dial up your service provider.
4) The name of the directory which will hold your pages. It is sometimes the case that web pages are stored in a special directory named ╥public_html╙.
If you do not have these pieces of information, the company that sold you the web server space (or the university that provided it for free) should be able to provide them.
To start, choose the New Connection... command from the File menu. Enter the four pieces of information in the four text fields, and press OK. If everything goes well you will see a list of the files in your web directory. Otherwise you will need to correct one or more of the pieces of information.
Once you are connected, choose the Put Folders and Files... command from the Remote menu to upload your web page files. If all of the files are in one folder, you can navigate to that folder and use the Add All button to add them to the list of items to be uploaded. Otherwise you can choose them one by one. You can also add folders to the list of items to be uploaded. Next you will be asked what formats to use for the transfer. You want to choose ╥Text╙ as the format for text files, and ╥Raw Data╙ as the format for all other files (such as images). Then press OK to begin the transfer.
Once the pages have been uploaded you should check them with a web browser such as Netscape Navigator¬. You will need to know the URL of your main page; that is another thing that your web service provider should be able to tell you. Enter the URL in the browser╒s Location field and check to make sure that all the images show up, and that all the links work. If there are problems you should double-check your HTML tags to make sure that they have the right file references. Also, be aware of the particular requirements of your web service provider. Some require that your main page be named ╥index.html╙. CGI scripts may need to go in a particular directory, and you may need to set their execute permission bit (see the Set Permissions help topic).